<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .item-list {
      width: 1400px;
      height: 562px;
      border: 1px solid red;
      margin: 10px auto;
    }

    .item {
      width: 280px;
      height: 370px;
      display: inline-block;
      float: left;
      margin: 95px 10px;
      position: relative;
      overflow: hidden;
    }

    .item-list .item:first-child {
      margin-left: 110px;
    }

    .item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .item .mask {
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: rgba(0, 0, 0, 0.4);
      left: 0;
      top: 0;
      color: white;
      opacity: 0;
      transition: opacity 0.5s linear;
    }

    .item:hover .mask{
        opacity: 1;
    }

    .item .mask p{
        padding-left: 30px;
        font-weight: 300;
        margin: 0;
    }
    
    .item .mask .name{
        position: relative;
        margin-top: 250px;
        font-size: 20px;
        margin-bottom: 0;
        transform: translateY(-300px);
        transition: transform 0.5s ease-in-out;
    }

    .item:hover .mask .name{
        transform: translateY(0px);
    }

    .item .mask .author,
    .item .mask .desc{
        font-size: 14px;
        margin-top: 10px;
    }

    .item .mask .author{
        transform: translateX(-200px);
        transition: transform 0.5s ease-in-out;
    }

    .item:hover .mask .author{
        transform: translateX(0);
    }

    .item .mask .desc{
        transform: translateY(100px);
        transition: transform 0.5s ease-in-out;
    }

    .item:hover .mask .desc{
        transform: translateY(0px);
    }
  </style>
  <body>
    <div class="item-list">
      <div class="item">
        <img src="/src/img/transform/hover1.png" alt="" />
        <div class="mask">
          <p class="name">《听闻远方的你》</p>
          <p class="author">演唱：刘艺雯</p>
          <p class="desc">我吹过你吹过的风，这算不算相拥。我走过你走过的路，这算不算相逢。</p>
        </div>
      </div>
      <div class="item">
        <img src="/src/img/transform/hover2.png" alt="" />
        <div class="mask">
          <p class="name">《如果你能把我灌醉》</p>
          <p class="author">演唱：任夏</p>
          <p class="desc">如果你能把我灌醉，你就知道我还爱着谁。如果你也伤痕累累...</p>
        </div>
      </div>
      <div class="item">
        <img src="/src/img/transform/hover3.png" alt="" />
        <div class="mask">
          <p class="name">《秒针》</p>
          <p class="author">演唱：阿梨粤</p>
          <p class="desc">雨夜深深，沉默的秒针。冥冥中给我轻轻感应这共振...</p>
        </div>
      </div>
      <div class="item">
        <img src="/src/img/transform/hover4.png" alt="" />
        <div class="mask">
          <p class="name">《留什么给你》</p>
          <p class="author">演唱：孙楠</p>
          <p class="desc">那天离开你留下几个字给你...</p>
        </div>
      </div>
    </div>
  </body>
</html>
